<style>
<style>
    .layui-card-body{
        color: #0D0D0D;
    }
</style>
<script type="text/html" id="barDemo">
    <!--    <a class="layui-btn layui-btn-xs layui-btn-primary" href="/voip/airlines_auth/useredit/id/{{d.id}}">详情</a>-->
    <a class="layui-btn layui-btn-warm layui-btn-xs" lay-event="call" cid="{{d.cid}}" pid="{{d.pid}}">预拨打</a>
</script>
<script type="text/html" id="toolbarDemo"></script>

<script>
    var index;
    var smsInfo={$smsInfo};
    var smsoption,exceltype;

    layui.config({
        base: '/themes/admin_themes/module/'
    }).use(['table','vaeyo','form','element','laydate'], function(){
        var table = layui.table
            ,vae = layui.vaeyo
            ,$ = layui.$
            ,form = layui.form
            ,element= layui.element
            ,laydate= layui.laydate
        $(smsInfo).each(function () {
            smsoption+="<option value="+this.id+">"+this.title+"</option>"
        })


        var exceltype=$("[name=relation]:checked").val();
        switch (exceltype) {
            case '1':
                var tableIns = table.render({
                    elem: '#list'
                    ,toolbar: '#toolbarDemo'
                    ,url: callListUrl //数据接口
                    ,page: true //开启分页
                    ,limit: 15
                    ,cols: [[ //表头
                        ,{field: 'left', toolbar: '#serial',title:'序号',  width:150, align:'center'}
                        ,{field: 'pname', title: 'A姓名', align:'center'}
                        ,{field: 'pdetailed_addr', title: 'A住址', align:'center'}
                        ,{field: 'pinterest', title:'A兴趣',  align:'center'}
                        ,{field: 'cname', title:'B娃娃姓名',  align:'center'}
                        ,{field: 'cdetailed_addr', title:'B娃娃住址',  align:'center'},
                        ,{field: 'cinterest', title:'B娃娃兴趣',  align:'center'}
                        ,{field: 'userObj', title:'最近拨打对象',  align:'center'}
                        ,{field: 'userObjStatus', title:'拨打状态',  align:'center'}
                        ,{field: 'create_time',width:165,  title:'时间',  align:'center'}
                        ,{field: 'userObjMark', title:'评分',  align:'center'}
                        ,{field: 'right', toolbar: '#barDemo', width:150, align:'center'}
                    ]]
                });
                break;
            case '2':
                var tableIns = table.render({
                    elem: '#list'
                    ,toolbar: '#toolbarDemo'
                    ,url: callListUrl //数据接口
                    ,page: true //开启分页
                    ,limit: 15
                    ,cols: [[ //表头
                        ,{field: 'left', toolbar: '#serial',title:'序号',  width:150, align:'center'}
                        ,{field: 'pname', title: '姓名', align:'center'}
                        ,{field: 'pdetailed_addr', title: '住址', align:'center'}
                        ,{field: 'pinterest', title:'兴趣',  align:'center'}
                        ,{field: 'userObj', title:'最近拨打对象',  align:'center'}
                        ,{field: 'userObjStatus', title:'拨打状态',  align:'center'}
                        ,{field: 'create_time',width:165,  title:'时间',  align:'center'}
                        ,{field: 'userObjMark', title:'评分',  align:'center'}
                        ,{field: 'right', toolbar: '#barDemo', width:150, align:'center'}
                    ]]
                });
                break;
            case '3':
                var tableIns = table.render({
                    elem: '#list'
                    ,toolbar: '#toolbarDemo'
                    ,url: callListUrl //数据接口
                    ,page: true //开启分页
                    ,limit: 15
                    ,cols: [[ //表头
                        ,{field: 'left', toolbar: '#serial',title:'序号',  width:150, align:'center'}
                        ,{field: 'cname', title:'娃娃姓名',  align:'center'}
                        ,{field: 'cdetailed_addr', title:'娃娃住址',  align:'center'},
                        ,{field: 'cinterest', title:'娃娃兴趣',  align:'center'}
                        ,{field: 'userObj', title:'最近拨打对象',  align:'center'}
                        ,{field: 'userObjStatus', title:'拨打状态',  align:'center'}
                        ,{field: 'create_time',width:165,  title:'时间',  align:'center'}
                        ,{field: 'userObjMark', title:'评分',  align:'center'}
                        ,{field: 'right', toolbar: '#barDemo', width:150, align:'center'}
                    ]]
                });
                break;
        }


        //监听行工具事件
        table.on('tool(test)', function(obj){
            var data = obj.data;
            console.log(obj)
            str=obj.tr.selector;
            index=str.replace(/[^0-9]/g, "");//price值为：200
            if(obj.event === 'call'){
                //页面层
                var rel=$(".rel:checked").val();
                var pid=data.pid;
                var cid=data.cid;

                switch (rel) {
                    case '1':
                        pcinfo(pid,1,index);
                        pcinfo(cid,2,index);
                        break;
                    case '2':
                        pcinfo(pid,1,index);
                        break;
                    case '3':
                        pcinfo(cid,2,index);
                        break;
                }

                layer.open({
                    type: 1,
                    title:'呼叫信息'
                    ,offset: 'lt',//具体配置参考：http://www.layui.com/doc/modules/layer.html#offset
                    id:'content',
                    skin: 'layui-layer-rim', //加上边框
                    area: ['1200px', '800px'], //宽高
                    content: ''
                });
            }
        });


        var phtml,chtml,pcallLog,ccallLog;
        function pcinfo(id,type) {
            htmlinit();
            var pcallLog=addrshtml=sightml=worksheethtml='';

            $.post("{:url('airlines/ajaxGetPCInfoAndLog')}", {'id': id, 'type': type}, function (data) {
                var pinfo   = data[0];
                var logList = data[1];
                var sigs    = data[2];
                var addrs   = data[3];
                var worksheet=data[4];
                var culturalname=data[5];
                var levelName=data[6];
                switch (type) {
                    case 1:
                        $(logList).each(function () {
                            pcallLog += "<tr>\n" +
                                "                                <td>"+this.nickname+"</td>\n" +
                                "                                <td>"+this.username+"</td>\n" +
                                "                                <td>"+this.phone+"</td>\n" +
                                "                                <td>"+this.call_status+"</td>\n" +
                                "                                <td>"+this.aimname+"</td>\n" +
                                "                                <td>"+this.intention+"</td>\n" +
                                "                                <td>"+this.mark+"</td>\n" +
                                "                                <td>"+this.remark+"</td>\n" +
                                "            <td><a class=\"layui-btn layui-btn-warm layui-btn-xs plog-call\" type="+1+" call_id=" + this.id + ">拨打</a>\n</td>\n" +
                                "                            </tr>";
                        })


                        $(sigs).each(function () {
                            sightml+="<button type=\"button\" class=\"layui-btn layui-btn-normal layui-btn-radius\">"+this.signame+"</button>\n";
                        })
                        $(worksheet).each(function () {
                            worksheethtml+=" <tr>\n" +
                                "                                            <td>"+this.company_id+"</td>\n" +
                                "                                            <td>"+this.job_id+"</td>\n" +
                                "                                            <td>"+this.intro+"</td>\n" +
                                "                                            <td>"+this.ymoney+"</td>\n" +
                                "                                            <td>"+this.disburse+"</td>\n" +
                                "                                            <td>"+this.levelname+"</td>\n" +
                                "                                            <td>"+this.create_time+"</td>\n" +
                                "                                        </tr>";
                        })
                        $(addrs).each(function () {
                            addrshtml+="<tr>\n" +
                                "                                            <td>"+this.province+"</td>\n" +
                                "                                            <td>"+this.city+"</td>\n" +
                                "                                            <td>"+this.county+"</td>\n" +
                                "                                            <td>"+this.detailed_addr+"</td>\n" +
                                "                                            <td>"+this.ht_id+"</td>\n" +
                                "                                            <td>"+this.create_time+"</td>\n" +
                                "                                        </tr>";
                        })

                        $("#content").append(callExcel1(pinfo['name'],pinfo['sex'],pinfo['age'],culturalname,pinfo['interest'],levelName,pinfo['phone'],pinfo['wechat'],pinfo['qq'],pinfo['email'],pinfo['alipay_number'],
                            sightml,addrshtml,worksheethtml,pcallLog,pinfo['id'],pinfo['ageName']))
                        element.render()
                        break;
                    case 2:
                        chtml += " <tbody>\n" +
                            "        <tr>\n" +
                            "            <td>" + pinfo['name'] + "</td>\n" +
                            "            <td>" + pinfo['sex'] + "</td>\n" +
                            "            <td>" + pinfo['age'] + "</td>\n" +
                            "            <td>" + pinfo['age'] + "</td>\n" +
                            "            <td>" + pinfo['interest'] + "</td>\n" +
                            "            <td>" + pinfo['detailed_addr'] + "</td>\n" +
                            "            <td><a class=\"layui-btn layui-btn-danger layui-btn-xs\" lay-event=\"call\" id='send_callc'  call_id=" + pinfo['id'] + ">拨打</a>\n</td>\n" +
                            "        </tr>\n" +
                            "        </tbody>\n" +
                            "    </table>";
                        $("#content").append(chtml)
                        $(logList).each(function () {
                            ccallLog += "<tr>\n" +
                                "            <td>" + this.nickname + "</td>\n" +
                                "            <td>" + this.username + "</td>\n" +
                                "            <td>" + this.qq + "</td>\n" +
                                "            <td>" + this.wechat + "</td>\n" +
                                "            <td>" + this.email + "</td>\n" +
                                "            <td>" + this.phone + "</td>\n" +
                                "            <td>" + this.alipay + "</td>\n" +
                                "            <td>" + this.call_status + "</td>\n" +
                                "            <td>" + this.is_sms + "</td>\n" +
                                "            <td>" + this.sms_id + "</td>\n" +
                                "            <td>" + this.create_time + "</td>\n" +
                                "            <td>" + this.remark + "</td>\n" +
                                "            <td>" + this.mark + "</td>\n" +
                                "            <td><a class=\"layui-btn layui-btn-danger layui-btn-xs clog-call\"call_id=" + this.id + " type="+2+">拨打</a>\n</td>\n" +
                                "        </tr>";
                        })

                        ccallLog += "        </tbody>\n" +
                            "    </table>";
                        $("#content").append(ccallLog)
                        break;
                    default:
                        break;
                }
                $("#send_call").unbind();
                $("#send_call").click(function () {
                    var utype = 1;
                    var id = $(this).attr('call_id');
                    $.post("{:url('airlines/ajaxGetUserInfo')}", {'id': id, 'type': utype}, function (data) {

                        if (data['status']!=1){
                            layer.msg('数据有疑问！',{icon: 5});//失败的表情
                            return;
                        }
                        var cultural=data['cultural'];
                        var consumption_level=data['consumption_level'];
                        var ageGroup=data['ageGroup'];
                        var userSig=data['userSig'];
                        data=data['data'];
                        sendCall(data['phone'],data['name'],data['sex'],data['name']);

                        var resultData=callTable(cultural,consumption_level,ageGroup,userSig,data)
                        layer.open({
                            type: 1
                            ,
                            offset: 'rt'//具体配置参考：http://www.layui.com/doc/modules/layer.html#offset
                            ,
                            id: 'callrt' //防止重复弹出
                            ,
                            area: ['1000px', '800px'] //宽高
                            ,
                            content: callforminit(data['name'], data['sex'], data['age'], data['phone'], data['qq'], data['email'], data['wechat'], data['alipay_number'], 1, data['id'],data['name'],resultData[0],resultData[1],resultData[2],resultData[3],data['interest'])
                            ,
                            btnAlign: 'c' //按钮居中
                            ,
                            shade: 0 //不显示遮罩
                        });
                        var checkKey = '#boby';
                        if (data['sex'] == '女') {
                            checkKey = '#girl';
                        }
                        $(checkKey).attr('checked', 'checked');
                        sendSms();

                        form.render();
                        layuiForm();
                        element.render()
                        //常规用法
                        //常规用法

                    })
                })

                function callTable(cultural,consumption_level,ageGroup,userSig,data) {

                    var  culturalOption='';
                    $(cultural).each(function () {
                        var selected=false;
                        if (this.id==data['cultural_id']){
                            selected="selected";
                        }
                        culturalOption+="<option value="+this.id+" "+selected+">"+this.name+"</option>"
                    })
                    var consumptionLevelOption='';
                    $(consumption_level).each(function () {
                        var selected=false;
                        if (this.id==data['level_id']){
                            selected="selected";
                        }
                        consumptionLevelOption+="<option value="+this.id+" "+selected+">"+this.name+"</option>"
                    })
                    var ageGroupOption='';
                    $(ageGroup).each(function () {
                        var selected=false;
                        if (this.id==data['ageg']){
                            selected="selected";
                        }
                        ageGroupOption+="<option value="+this.id+" "+selected+">"+this.name+"</option>"
                    })
                    var userSigOption='';
                    var sigs=data['sigs'];
                    var sigsArr=[];
                    if (sigs){
                        sigsArr=sigs.split(',');
                    }

                    $(userSig).each(function () {
                        var checked=false;
                        if ($.inArray(''+this.id+'',sigsArr)>-1){
                            checked="checked";
                        }
                        userSigOption+="<input type='checkbox' name='sigs' value="+this.id+" title="+this.signame+"  "+checked+">"
                    })
                    return [culturalOption,consumptionLevelOption,ageGroupOption,userSigOption]
                }
                function layuiForm() {
                    layui.use(['form'], function () {
                        var form = layui.form;
                        form.on('submit(call-form)', function (data) {
                            ajaxsubmit(data.field, 1);
                            return false;
                        })
                        form.on('submit(call-form1)', function (data) {
                            ajaxsubmit(data.field, 0);
                            return false;
                        })

                        function ajaxsubmit(data, iscolse) {

                            var sigs=$("[name='sigs']:checked");
                            var sig='';
                            $(sigs).each(function () {
                                sig+=this.defaultValue+',';
                            })
                            data['sigs']=sig;
                            $.post("{:url('airlines/uploadLog')}", {data}, function (res) {
                                if (res.status != 1) {
                                    layer.msg('保存失败了！', {icon: 5});//失败的表情

                                } else if (res.status == 1) {
                                    layer.msg('保存成功了！', {icon: 6});//失败的表情


                                    var tr = $("table").find("tr:eq(" + index + ")");

                                    switch (data.call_status) {
                                        case '0':
                                            data.call_status = '无效号码';
                                            break;
                                        case '1':
                                            data.call_status = '未接通';
                                            break;
                                        case '2':
                                            data.call_status = '挂断';
                                            break;
                                        case '3':
                                            data.call_status = '成功呼叫';
                                            break;
                                    }
                                    tindex=3;
                                    if (exceltype==1) {
                                        tindex=6;
                                    }
                                    tindex++;
                                    tr.find("td:eq("+tindex+")").find("div:eq(0)").html(data.username);
                                    tindex++;
                                    tr.find("td:eq("+tindex+")").find("div:eq(0)").html(data.call_status);
                                    tindex++;
                                    tr.find("td:eq("+tindex+")").find("div:eq(0)").html(res.create_time);
                                    var title=$("[name=mark]:checked").attr('title');
                                    tindex++;
                                    tr.find("td:eq("+tindex+")").find("div:eq(0)").html(title);
                                    if (iscolse) {
                                        layer.closeAll();
                                    }
                                } else {
                                    layer.msg('保存失败了！', {icon: 5});//失败的表情

                                }

                            }, "json")
                        }
                    })
                    laydate.render({
                        elem: '#test1'
                    });
                }

                $("#send_callc").unbind();
                $("#send_callc").click(function () {
                    var utype = 2;
                    var id = $(this).attr('call_id');
                    $.post("{:url('airlines/ajaxGetUserInfo')}", {'id': id, 'type': utype}, function (data) {
                        if (data['status']!=1){
                            layer.msg('数据有疑问！',{icon: 5});//失败的表情
                            return;
                        }

                        data=data['data'];
                        sendCall(data['phone'],data['name'],data['sex'],data['name']);8

                        layer.open({
                            type: 1
                            ,
                            offset: 'rt'//具体配置参考：http://www.layui.com/doc/modules/layer.html#offset
                            ,
                            id: 'callrt' //防止重复弹出
                            ,
                            area: ['1000px', '800px'] //宽高
                            ,
                            content: callforminit(data['name'], data['sex'], data['age'], data['phone'], data['qq'], data['email'], data['wechat'], data['alipay_number'], 2, data['id'], data['name'])
                            ,
                            btnAlign: 'c' //按钮居中
                            ,
                            shade: 0 //不显示遮罩
                        });
                        var checkKey = '#boby';
                        if (data['sex'] == '女') {
                            checkKey = '#girl';
                        }
                        $(checkKey).attr('checked', 'checked');
                        sendSms();

                        form.render();
                        layuiForm();
                        element.render()

                    })
                })

                $(".clog-call,.plog-call").unbind();
                $(".clog-call,.plog-call").click(function () {
                    var id = $(this).attr('call_id');
                    var utype = $(this).attr('type');

                    $.post("{:url('airlines/ajaxCallLog')}", {'id': id, 'type': utype}, function (data) {

                        if (data['status']!=1){
                            layer.msg('数据有疑问！',{icon: 5});//失败的表情
                            return;
                        }
                        var cultural=data['cultural'];
                        var consumption_level=data['consumption_level'];
                        var ageGroup=data['ageGroup'];
                        var userSig=data['userSig'];
                        data=data['data'];
                        var resultData=callTable(cultural,consumption_level,ageGroup,userSig,data)
                        sendCall(data['phone'],data['username'],data['sex'],data['username']);
                        layer.open({
                            type: 1
                            ,
                            offset: 'rt'//具体配置参考：http://www.layui.com/doc/modules/layer.html#offset
                            ,
                            id: 'callrt' //防止重复弹出
                            ,
                            area: ['1000px', '800px'] //宽高
                            ,
                            content: callforminit(data['username'], data['sex'], data['age'], data['phone'], data['qq'], data['email'], data['wechat'], data['alipay'], utype, data['uid'], data['username'],resultData[0],resultData[1],resultData[2],resultData[3],data['interest'])
                            ,
                            btnAlign: 'c' //按钮居中
                            ,
                            shade: 0 //不显示遮罩
                        });
                        var checkKey = '#boby';
                        if (data['sex'] == '女') {
                            checkKey = '#girl';
                        }
                        $(checkKey).attr('checked', 'checked');
                        sendSms();
                        form.render();

                        layuiForm();
                        element.render()

                    })
                })
            });
        }
        function sendSms() {
            $("#sms_send").click(function () {
                var sms_id=$("#sms_id").find("option:selected").val();
                var send_phone=$("#send_phone").val();
                var ex = /^\d+$/;
                var type=1;
                if(ex.test(send_phone)){
                    type=0;
                };
                layer.confirm('确定发送短信吗', {icon: 3, title:'提示'}, function(index){
                    $.post("{:url('sms/sendSms')}",{"id":sms_id,"phone":send_phone,"type":type},function (data) {
                        if (!data){
                            layer.msg('短信发送失败了', {icon: 5});
                        } else {
                            layer.msg('短信发送成功', {icon: 6});
                            $("#is_sms").val(1);
                        }
                    })
                });
            })
        }
        function sendCall(phone,uname,sex,Id){
            $.post("{:url('Qimo/callOut')}",{'phone':phone},function (res) {
                if (res['status']!=1){
                    layer.msg('拨号失败！',{icon: 5});//失败的表情
                    return;
                }else if (res['status']==1){
                    callAlert(res['ActionID'],uname,sex,Id,phone)
                    layer.msg('拨号成功！',{icon: 6});//失败的表情
                    return;
                } else {
                    layer.msg('拨号失败！',{icon: 5});//失败的表情
                    return;
                }
            })
        };
        function  callAlert(uniqid,uname,sex,Id,phone) {
            layer.open({
                type: 1
                ,title: '拨打电话中' //不显示标题栏
                ,closeBtn: false
                ,area: '300px;'
                ,offset:'lt'
                ,shade: 0
                ,id: 'LAY_layuipro' //设定一个id，防止重复弹出
                , content: '<div style="padding: 50px; line-height: 22px; background-color: #393D49; color: #fff; font-weight: 300;">' +
                    '<div style="padding: 20px; background-color: #F2F2F2;">\n' +
                    '    <div class="layui-row layui-col-space15">\n' +
                    '        <div class="layui-col-md12">\n' +
                    '            <div class="layui-card">\n' +
                    '                <div class="layui-card-header">性名</div>\n' +
                    '                <div class="layui-card-body">\n' +
                    '                    '+uname+'\n' +
                    '\n' +
                    '                </div>\n' +
                    '            </div>\n' +
                    '        </div>\n' +
                    '        <div class="layui-col-md12">\n' +
                    '            <div class="layui-card">\n' +
                    '                <div class="layui-card-header">性别</div>\n' +
                    '                <div class="layui-card-body">\n' +
                    '                    '+sex+'\n' +
                    '                </div>\n' +
                    '            </div>\n' +
                    '        </div>\n' +
                    '        <div class="layui-col-md12">\n' +
                    '            <div class="layui-card">\n' +
                    '                <div class="layui-card-header">手机号</div>\n' +
                    '                <div class="layui-card-body">\n' +
                    '                    '+phone+'\n' +
                    '                </div>\n' +
                    '            </div>\n' +
                    '        </div>\n' +
                    '    </div>\n' +
                    '</div>' +
                    '</div>'
                ,btn: ['挂断']
                ,btnAlign: 'c'
                ,moveType: 0 //拖拽模式，0或者1
                ,success: function(layero){
                    console.log(layero);
                    var btn = layero.find('.layui-layer-btn');
                    $(".layui-layer-btn0").click(function () {
                        $.post("{:url('qimo/callEnd')}",{"uniqid":uniqid},function (res) {
                            if (res['status']!=1){
                                layer.msg('挂断失败了！',{icon: 5});//失败的表情
                                return;
                            }else if (res['status']==1){
                                layer.msg('挂断成功了！',{icon: 6});//失败的表情
                                return;
                            } else {
                                layer.msg('挂断失败了！',{icon: 5});//失败的表情
                                return;
                            }
                        })
                    })

                }
            });

        }
        //监听搜索提交
        form.on('submit(vaeform)', function(data){
            console.log(data.field)
            if(data.field) {
                tableIns.reload({where:{keywords:data.field}});
                vae.bundledTab();
            }
            return false;
        });
        form.on('select(province)', function(data){
            clearCity();
            clearCounty();
            if (data.value){
                ajaxprovince('#city',1,data.value);

            }
            console.log(data.value); //得到被选中的值
        });
        form.on('select(city)', function(data){
            clearCounty();
            if (data.value){
                ajaxprovince('#county',2,data.value);
            }
        });
        function callforminit(username,usex,age,phone,qq,email,wechat,alipay,type,uid,idcrad,culturalOption,consumptionLevelOption,ageGroupOption,userSigOption,interest) {
            var eid=$("#excelId").find("option:selected").val();
            var callhtml="<div>\n" +
                "    <fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 50px;\">\n" +
                "        <legend>A-"+username+"</legend>\n" +
                "    </fieldset>\n" +
                "    <form class=\"layui-form layui-form-pane\" action=\"\">\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">基本信息</h2>\n" +
                "                <div class=\"layui-colla-content layui-show\">\n" +
                "\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">名字</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"username\" required lay-verify=\"required\" placeholder=\"请输入\" value="+username+" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">性别</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"radio\" name=\"sex\" value=\"1\" id='boby' title=\"男\" checked=\"\">\n" +
                "                                <input type=\"radio\" name=\"sex\" value=\"2\" id='girl' title=\"女\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">年龄段</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <div class=\"layui-input-inline\">\n" +
                "                                    <select name=\"age_group\" required lay-verify=\"required\">\n" +
                "                                        <option value=''>请选择</option>\n" +
                ageGroupOption+
                "                                    </select>\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">文化</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <select name=\"cultural_id\" required lay-verify=\"required\">\n" +
                "                                    <option value=''>请选择</option>\n" +
                culturalOption+
                "                                </select>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">手机号</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"phone\" required lay-verify=\"required\" autocomplete=\"off\" value="+phone+" class=\"layui-input\" id='send_phone'>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">生日</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" class=\"layui-input\" name=\"age\" id=\"test1\" value="+age+" placeholder=\"yyyy-MM-dd\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">消费能力</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <select name=\"level_id\" required lay-verify=\"required\">\n" +
                "                                    <option value=\"\">请选择</option>\n" +
                "\n" +
                consumptionLevelOption+
                "                                </select>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">工作信息</h2>\n" +
                "                <div class=\"layui-colla-content \">\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">公司</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"company\"  autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">职位</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"job\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">年薪</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"ymoney\"  autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">年支出</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"disburse\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">消费能力</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <select name=\"wlevel_id\">\n" +
                "                                    <option value=\"\">请选择</option>\n" +
                consumptionLevelOption+
                "                                </select>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">备注</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"wremark\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">工作简介</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"wintro\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">住址</h2>\n" +
                "                <div class=\"layui-colla-content \">\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">省</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"province\"  autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">市</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"city\"autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">区</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"county\"autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">详细地址</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"detailed_addr\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">住址类型</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"ht_id\" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">备注</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"hremark\"autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "\n" +
                "\n" +
                "\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">更多社交信息填写</h2>\n" +
                "                <div class=\"layui-colla-content \">\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">微信</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"wechat\"  placeholder=\"请输入\" value="+wechat+" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">支付宝账号</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"alipay\"  placeholder=\"请输入\" value="+alipay+" autocomplete=\"off\" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">QQ</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"qq\" placeholder=\"请输入\" autocomplete=\"off\" value="+qq+" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">Email</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <input type=\"text\" name=\"email\"  placeholder=\"请输入\" autocomplete=\"off\" value="+email+" class=\"layui-input\">\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "\n" +
                "        </div>\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">标签</h2>\n" +
                "                <div class=\"layui-colla-content \">\n" +
                    userSigOption+
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">兴趣/备注</h2>\n" +
                "                <div class=\"layui-colla-content layui-show\">\n" +
                "                    <div class=\"layui-form-item layui-form-text\">\n" +
                "                        <label class=\"layui-form-label\">兴趣</label>\n" +
                "                        <div class=\"layui-input-block\">\n" +
                "                            <textarea placeholder=\"请输入内容\" class=\"layui-textarea\" name=\"interest\">"+interest+"</textarea>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "\n" +
                "                    <div class=\"layui-form-item layui-form-text\">\n" +
                "                        <label class=\"layui-form-label\">备注</label>\n" +
                "                        <div class=\"layui-input-block\">\n" +
                "                            <textarea placeholder=\"请输入内容\" name=\"remark\" required lay-verify=\"required\"  class=\"layui-textarea\"></textarea>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">客户、通话评分</h2>\n" +
                "                <div class=\"layui-colla-content layui-show\">\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <label class=\"layui-form-label\">客户意向</label>\n" +
                "                        <div class=\"layui-input-block\">\n" +
                "                            <input type=\"radio\" name=\"intention\" value=\"0\" title=\"无意愿\" checked=\"\">\n" +
                "                            <input type=\"radio\" name=\"intention\" value=\"1\" title=\"有意愿\">\n" +
                "                            <input type=\"radio\" name=\"intention\" value=\"2\" title=\"非常有意愿\">\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <label class=\"layui-form-label\">呼叫状态</label>\n" +
                "                        <div class=\"layui-input-block\">\n" +
                "                            <input type=\"radio\" name=\"call_status\" value=\"0\" title=\"无效号码\" checked=\"\">\n" +
                "                            <input type=\"radio\" name=\"call_status\" value=\"1\" title=\"未接通\">\n" +
                "                            <input type=\"radio\" name=\"call_status\" value=\"2\" title=\"挂断\">\n" +
                "                            <input type=\"radio\" name=\"call_status\" value=\"3\" title=\"成功呼叫\">\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <label class=\"layui-form-label\">电话评分</label>\n" +
                "                        <div class=\"layui-input-block\">\n" +
                "                            <input type=\"radio\" name=\"mark\" value=\"0\" title=\"差\" checked=\"\">\n" +
                "                            <input type=\"radio\" name=\"mark\" value=\"1\" title=\"中\">\n" +
                "                            <input type=\"radio\" name=\"mark\" value=\"2\" title=\"优\">\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"layui-collapse\" lay-accordion=\"\">\n" +
                "            <div class=\"layui-colla-item\">\n" +
                "                <h2 class=\"layui-colla-title\">短信</h2>\n" +
                "                <div class=\"layui-colla-content layui-show\">\n" +
                "                    <div class=\"layui-form-item\">\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">短信模板</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                                <select  name='sms_id' lay-filter='aihao' id='sms_id'>\n" +
                "\n" +
                smsoption+
                "                                </select>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-inline\">\n" +
                "                            <label class=\"layui-form-label\">发送</label>\n" +
                "                            <div class=\"layui-input-inline\">\n" +
                "                               <button type=\"button\" class=\"layui-btn   layui-btn-warm\" id='sms_send'>发送短信</button>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "\n" +
                "\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "        <div class=\"layui-col-md12\">\n" +
                "            <div class=\"layui-card\">\n" +
                "                <div class=\"layui-card-header\">提交</div>\n" +
                "                <div class=\"layui-card-body\">\n" +
                "                    <input type=\"hidden\" name=\"type\" value="+type+">\n" +
                "                    <input type=\"hidden\" name=\"uid\" value="+uid+">\n" +
                "                    <input type=\"hidden\" name=\"is_sms\" value="+0+" id=\"is_sms\">\n" +
                "                    <input type=\"hidden\" name=\"eid\" value="+eid+" >\n" +
                "                    <button type=\"submit\" class=\"layui-btn layui-btn-warm\" lay-filter='call-form' name='sall' lay-submit=''>提交并关闭弹窗</button>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "    </form>\n" +
                "</div>"
            return callhtml;
        }
        function clearCity() {
            $("#city").html("<option value=''>请选择市</option>")
            form.render();
        }
        function clearCounty() {
            $("#county").html("<option value=''>请选择县/区</option>")
            form.render();
        }
        function ajaxprovince(key,type,age,culturalname,) {
            $.post("{:url('airlines/provinces')}",{'type':type,'topid':topid},function (data) {
                $(data).each(function () {
                    $(key).append("<option value="+this.id+">"+this.toponymy+"</option>")
                })
                form.render();
            })

        }


        function callExcel1(username,sex,age,culturalname,interest,levelname,phone,wechat,qq,email,alipay_number,sigs,addrs,worksheet,callLog,pid,ageName) {
            var Excel1="<div>\n" +
                "    <fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 20px;\">\n" +
                "        <legend>A-"+username+"</legend>\n" +
                "    </fieldset>\n" +
                "    <div style=\"padding: 20px; background-color: #545f5e;\">\n" +
                "        <div class=\"layui-row layui-col-space15\">\n" +
                "            <div class=\"layui-col-md12\">\n" +
                "                <div class=\"layui-card\">\n" +
                "                    <div class=\"layui-card-header\">身份信息</div>\n" +
                "                    <div class=\"layui-card-body\">\n" +
                "                        <p>姓名：<span>"+username+"</span></p>\n" +
                "                        <p>性别：<span>"+sex+"</span></p>\n" +
                "                        <p>生日：<span>"+age+"</span></p>\n" +
                "                        <p>年龄段：<span>"+ageName+"</span></p>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "            <div class=\"layui-col-md12\">\n" +
                "                <div class=\"layui-card\">\n" +
                "                    <div class=\"layui-card-header\">基本信息</div>\n" +
                "                    <div class=\"layui-card-body\">\n" +
                "                        <p>文化层次：<span>"+culturalname+"</span></p>\n" +
                "                        <p>兴趣：<span>"+interest+"</span></p>\n" +
                "                        <p>消费能力：<span>"+levelname+"</span></p>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "            <div class=\"layui-collapse \" lay-accordion=\"\" >\n" +
                "                <div class=\"layui-colla-item\">\n" +
                "                    <h2 class=\"layui-colla-title\">查看更多</h2>\n" +
                "                    <div class=\"layui-colla-content\">\n" +
                "                        <div class=\"layui-col-md12\">\n" +
                "                            <div class=\"layui-card\">\n" +
                "                                <div class=\"layui-card-header\">社交</div>\n" +
                "                                <div class=\"layui-card-body\">\n" +
                "                                    <p>手机号：<span>"+phone+"</span></p>\n" +
                "                                    <p>微信号：<span>"+wechat+"</span></p>\n" +
                "                                    <p>QQ号：<span>"+qq+"</span></p>\n" +
                "                                    <p>Email：<span>"+email+"</span></p>\n" +
                "                                    <p>支付宝号：<span>"+alipay_number+"</span></p>\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-col-md12\">\n" +
                "                            <div class=\"layui-card\">\n" +
                "                                <div class=\"layui-card-header\">标签</div>\n" +
                "                                <div class=\"layui-card-body\">\n" +
            sigs+
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-col-md12\">\n" +
                "                            <div class=\"layui-card\">\n" +
                "                                <div class=\"layui-card-header\">住址</div>\n" +
                "                                <div class=\"layui-card-body\">\n" +
                "                                    <table class=\"layui-table\" lay-size=\"sm\">\n" +
                "                                        <thead>\n" +
                "                                        <tr>\n" +
                "                                            <th>省</th>\n" +
                "                                            <th>市</th>\n" +
                "                                            <th>区</th>\n" +
                "                                            <th>详细地址</th>\n" +
                "                                            <th>住址类型</th>\n" +
                "                                            <th>记录时间</th>\n" +
                "                                        </tr>\n" +
                "                                        </thead>\n" +
                "                                        <tbody>\n" +
  addrs+
                "                                        </tbody>\n" +
                "                                    </table>\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-col-md12\">\n" +
                "                            <div class=\"layui-card\">\n" +
                "                                <div class=\"layui-card-header\">工作</div>\n" +
                "                                <div class=\"layui-card-body\">\n" +
                "                                    <table class=\"layui-table\" lay-size=\"sm\">\n" +
                "                                        <thead>\n" +
                "                                        <tr>\n" +
                "                                            <th>公司</th>\n" +
                "                                            <th>工作类型</th>\n" +
                "                                            <th>工作详细</th>\n" +
                "                                            <th>年薪</th>\n" +
                "                                            <th>年支出</th>\n" +
                "                                            <th>消费等级</th>\n" +
                "                                            <th>记录时间</th>\n" +
                "                                        </tr>\n" +
                "                                        </thead>\n" +
                "                                        <tbody>\n" +
         worksheet+
                "                                        </tbody>\n" +
                "                                    </table>\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                        <div class=\"layui-col-md12\">\n" +
                "                            <div class=\"layui-card\">\n" +
                "                                <div class=\"layui-card-header\">通话日志</div>\n" +
                "                                <div class=\"layui-card-body\">\n" +
                "                                    <table class=\"layui-table\" lay-size=\"sm\">\n" +
                "                                        <thead>\n" +
                "                                        <tr>\n" +
                "                                            <th>客服</th>\n" +
                "                                            <th>客户称呼</th>\n" +
                "                                            <th>电话号码</th>\n" +
                "                                            <th>呼叫状态</th>\n" +
                "                                            <th>任务目的</th>\n" +
                "                                            <th>客户意向</th>\n" +
                "                                            <th>通话评分</th>\n" +
                "                                            <th>备注</th>\n" +
                "                                            <th>操作</th>\n" +
                "                                        </tr>\n" +
                "                                        </thead>\n" +
                "                                        <tbody>\n" +
   callLog+
                "                                        </tbody>\n" +
                "                                    </table>\n" +
                "\n" +
                "                                </div>\n" +
                "                            </div>\n" +
                "                        </div>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "            <div class=\"layui-col-md12\">\n" +
                "                <div class=\"layui-card\">\n" +
                "                    <div class=\"layui-card-header\">呼叫</div>\n" +
                "                    <div class=\"layui-card-body\">\n" +
                "                        <button type=\"button\" class=\"layui-btn layui-btn-warm\"   id='send_call' lay-event='send_call' call_id="+pid+">拨打</button>\n" +
                "                    </div>\n" +
                "                </div>\n" +
                "            </div>\n" +
                "        </div>\n" +
                "    </div>\n" +
                "</div>"
            return Excel1;
        }

        function htmlinit() {
            phtml="<fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 50px;\">\n" +
                "        <legend>Excel第一组信息</legend>\n" +
                "    </fieldset>\n" +
                "    <table class=\"layui-table\" lay-even=\"\" style='width: 99%;margin-left: 0.5%;' lay-skin=\"row\">\n" +
                "\n" +
                "        <thead>\n" +
                "        <tr>\n" +
                "            <th>姓名</th>\n" +
                "            <th>性别</th>\n" +
                "            <th>生日</th>\n" +
                "            <th>年龄</th>\n" +
                "            <th>兴趣</th>\n" +
                "            <th>工作</th>\n" +
                "            <th>详细地址</th>\n" +
                "            <th>呼叫</th>\n" +
                "        </tr>\n" +
                "        </thead>\n";
            pcallLog="<fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 50px;\">\n" +
                "        <legend>Excel一组通话记录</legend>\n" +
                "    </fieldset>\n" +
                "    <table class=\"layui-table\" style='width: 99%;margin-left: 0.5%;' lay-size=\"sm\">\n" +
                "        <thead>\n" +
                "        <tr>\n" +
                "            <th>客服</th>\n" +
                "            <th>称呼</th>\n" +
                "            <th>QQ</th>\n" +
                "            <th>微信</th>\n" +
                "            <th>支付宝</th>\n" +
                "            <th>邮箱</th>\n" +
                "            <th>电话号码</th>\n" +
                "            <th>呼叫状态</th>\n" +
                "            <th>是否发生短信</th>\n" +
                "            <th>短信内容</th>\n" +
                "            <th>呼叫时间</th>\n" +
                "            <th>备注</th>\n" +
                "            <th>本次评分</th>\n" +
                "            <th>拨打（日志记录号码）</th>\n" +
                "        </tr>\n" +
                "        </thead>\n" +
                "        <tbody>"


            chtml="<fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 50px;\">\n" +
                "    <legend>第二组信息</legend>\n" +
                "</fieldset>\n" +
                "\n" +
                "<table class=\"layui-table\" lay-even=\"\" style='width: 99%;margin-left: 0.5%;' lay-skin=\"row\">\n" +
                "    <thead>\n" +
                "    <tr>\n" +
                "        <th>姓名</th>\n" +
                "        <th>性别</th>\n" +
                "        <th>生日</th>\n" +
                "        <th>年龄</th>\n" +
                "        <th>兴趣</th>\n" +
                "        <th>详细地址</th>\n" +
                "        <th>呼叫</th>\n" +
                "    </tr>\n" +
                "    </thead>";
            ccallLog="<fieldset class=\"layui-elem-field layui-field-title\" style=\"margin-top: 50px;\">\n" +
                "    <legend>第二组通话记录</legend>\n" +
                "</fieldset>\n" +
                "<table class=\"layui-table\" style='width: 99%;margin-left: 0.5%;' lay-size=\"sm\">\n" +
                "\n" +
                "    <thead>\n" +
                "    <tr>\n" +
                "        <th>客服</th>\n" +
                "        <th>称呼</th>\n" +
                "        <th>QQ</th>\n" +
                "        <th>微信</th>\n" +
                "        <th>邮箱</th>\n" +
                "        <th>电话号码</th>\n" +
                "        <th>支付宝</th>\n" +
                "        <th>呼叫状态</th>\n" +
                "        <th>是否发生短信</th>\n" +
                "        <th>短信内容</th>\n" +
                "        <th>呼叫时间</th>\n" +
                "        <th>备注</th>\n" +
                "        <th>本次评分</th>\n" +
                "        <th>拨打（日志记录号码）</th>\n" +
                "    </tr>\n" +
                "    </thead>\n" +
                "    <tbody>";
        }

    });
</script>